import request from '@/utils/request';

// 获取平台收支列表
export async function getGoodsGainList(params: any) {
  return request('/api/platform/getGoodsGainList', {
    method: 'GET',
    params,
  });
}

// 新增增值服务
export async function addGoodsGain(data: any) {
  return request('/api/platform/addGoodsGain', {
    method: 'POST',
    data,
  });
}

// 编辑增值服务
export async function editGoodsGain(data: any) {
  return request('/api/platform/editGoodsGain', {
    method: 'POST',
    data,
  });
}

// 设置有效/无效
export async function setGoodsGainStatus(params: any) {
  return request('/api/platform/setGoodsGainStatus', {
    method: 'GET',
    params,
  });
}

// 获取增值服务类型集合
export async function newGetGoodsGainTypeMap(params: any) {
  return request('/api/platform/newGetGoodsGainTypeMap', {
    method: 'GET',
    params,
  });
}
